﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharedLib.Exceptions
{
    public class ExceptionEventArgs : EventArgs
    {
        public Exception EmbededException { get; set; }
        public ExceptionEventArgs(Exception ex)
        {
            EmbededException = ex;
        }

        public string Message
        {
            get
            {
                if (EmbededException != null) return EmbededException.Message;
                return null;
            }
        }

        public string StackTrace
        {
            get
            {
                if (EmbededException != null) return EmbededException.StackTrace;
                return null;
            }
        }
    }
}
